<template>
  <div class="flex flex-col justify-center page-container">
    <div class="text-center">
      <!-- <img src="~@/assets/images/exception/404.svg" alt="" /> -->
    </div>
    <div class="text-center">
      <h1 class="text-base text-gray-500">
        {{ t("exception.404.description") }}
      </h1>
      <n-button type="info" @click="goHome">
        {{ t("exception.404.backBtnName") }}
      </n-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useI18n } from "vue-i18n";
const { t } = useI18n();
import { useRouter } from "vue-router";
const router = useRouter();
function goHome() {
  router.push("/");
}
</script>

<style lang="scss" scoped>
.page-container {
  width: 100%;
  border-radius: 4px;
  padding: 50px 0;
  height: 100vh;

  .text-center {
    h1 {
      color: #666;
      padding: 20px 0;
    }
  }

  img {
    width: 350px;
    margin: 0 auto;
  }
}
</style>
